package com.xuecheng.system.convert;


import com.xuecheng.api.system.model.DictionaryDTO;
import com.xuecheng.system.entity.Dictionary;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface DictionaryConvert {
    DictionaryConvert INSTANCE = Mappers.getMapper(DictionaryConvert.class);

    /**
     * Dictionary转换成DictionaryDTO
     */
    DictionaryDTO dictionaryPoToDto(Dictionary dictionary);

    /**
     * Dictionary 集合转化成DTO集合
     */
    List<DictionaryDTO> dictionaryPoToDtos(List<Dictionary> dictionaries);
}
